#!/usr/bin/env python
# encoding: utf-8
"""
    @author:水痕
    @time:2018-09-04 17:36:10
    @email:332904234@qq.com
    @version:1.0
    @fileName:urls.py
    @describe:
"""

from django.urls import path, re_path
from .views import new_article, article, edit_article, my_blogs

app_name = 'article'
urlpatterns = [
    path('new_article/', new_article.NewArticle.as_view(), name='new-article'),
    re_path('article_detail/(?P<article_id>\w+)/', article.ArticleDetail.as_view(), name='article-detail'),
    re_path('edit_article/(?P<article_id>\w+)/', edit_article.EditArticleView.as_view(), name='edit-article'),
    re_path('article_content/(?P<article_id>\w+)/', article.ArticleContent.as_view(), name='article-content'),
    path('delete_article/', article.DeleteArticleView.as_view(), name='delete-article'),
    path('my_blogs/', my_blogs.MyBlogsView.as_view(), name='my-blogs'),
    # re_path('article_detail/(?P<article_id>\w+)/', article.ArticleDetail.as_view(), name='article-detail'),
    path('nav/', article.TopNavView.as_view(), name='nav'),
    path('qiniu_token/', new_article.QiNiuToken.as_view(), name='qiniu-token'),
]
